import datetime
import pandas as pd
import numpy as np


start = datetime.datetime(2022, 3, 1)
end = datetime.datetime(2022, 5, 1)

index1 = pd.date_range(start, end, freq="48h")
index2 = pd.date_range(start, end, freq="2D")
index3 = pd.date_range(start, end, freq="1h20min")
print(index1)
print(index2)
print(index3)

print(
    "np.linspace(-1, 1, 5)\n",
    np.linspace(-1, 1, 5)
)
print(
    "\n\npd.date_range(start, end, periods=5)\n",
    pd.date_range(start, end, periods=5)
)
